#include "widget.h"
#include "ui_widget.h"
#include<QPushButton>
#include<QCursor>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* button = new QPushButton("cursor",this);
    button->resize(100,50);
    button->move(100,100);
    //设置沙漏光标
    button->setCursor(QCursor(Qt::WaitCursor));
}

Widget::~Widget()
{
    delete ui;
}

